/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Preventive Medicine Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20231 (C-0-T19465-S20096-S20231-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getPreventiveMedicineProviderCodes()
 * @model extendedMetaData="name='PreventiveMedicineProviderCodes'"
 * @generated
 */
public enum PreventiveMedicineProviderCodes implements Enumerator {
	/**
	 * The '<em><b>208300000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_208300000X_VALUE
	 * @generated
	 * @ordered
	 */
	_208300000X(0, "_208300000X", "208300000X"),

	/**
	 * The '<em><b>2083A0100X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2083A0100X_VALUE
	 * @generated
	 * @ordered
	 */
	_2083A0100X(1, "_2083A0100X", "2083A0100X"),

	/**
	 * The '<em><b>2083T0002X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2083T0002X_VALUE
	 * @generated
	 * @ordered
	 */
	_2083T0002X(2, "_2083T0002X", "2083T0002X"),

	/**
	 * The '<em><b>2083X0100X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2083X0100X_VALUE
	 * @generated
	 * @ordered
	 */
	_2083X0100X(3, "_2083X0100X", "2083X0100X"),

	/**
	 * The '<em><b>2083P0500X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2083P0500X_VALUE
	 * @generated
	 * @ordered
	 */
	_2083P0500X(4, "_2083P0500X", "2083P0500X"),

	/**
	 * The '<em><b>2083P0901X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2083P0901X_VALUE
	 * @generated
	 * @ordered
	 */
	_2083P0901X(5, "_2083P0901X", "2083P0901X"),

	/**
	 * The '<em><b>2083S0010X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2083S0010X_VALUE
	 * @generated
	 * @ordered
	 */
	_2083S0010X(6, "_2083S0010X", "2083S0010X"),

	/**
	 * The '<em><b>2083P0011X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_2083P0011X_VALUE
	 * @generated
	 * @ordered
	 */
	_2083P0011X(7, "_2083P0011X", "2083P0011X");

	/**
	 * The '<em><b>208300000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>208300000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_208300000X
	 * @model literal="208300000X"
	 * @generated
	 * @ordered
	 */
	public static final int _208300000X_VALUE = 0;

	/**
	 * The '<em><b>2083A0100X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2083A0100X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2083A0100X
	 * @model literal="2083A0100X"
	 * @generated
	 * @ordered
	 */
	public static final int _2083A0100X_VALUE = 1;

	/**
	 * The '<em><b>2083T0002X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2083T0002X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2083T0002X
	 * @model literal="2083T0002X"
	 * @generated
	 * @ordered
	 */
	public static final int _2083T0002X_VALUE = 2;

	/**
	 * The '<em><b>2083X0100X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2083X0100X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2083X0100X
	 * @model literal="2083X0100X"
	 * @generated
	 * @ordered
	 */
	public static final int _2083X0100X_VALUE = 3;

	/**
	 * The '<em><b>2083P0500X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2083P0500X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2083P0500X
	 * @model literal="2083P0500X"
	 * @generated
	 * @ordered
	 */
	public static final int _2083P0500X_VALUE = 4;

	/**
	 * The '<em><b>2083P0901X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2083P0901X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2083P0901X
	 * @model literal="2083P0901X"
	 * @generated
	 * @ordered
	 */
	public static final int _2083P0901X_VALUE = 5;

	/**
	 * The '<em><b>2083S0010X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2083S0010X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2083S0010X
	 * @model literal="2083S0010X"
	 * @generated
	 * @ordered
	 */
	public static final int _2083S0010X_VALUE = 6;

	/**
	 * The '<em><b>2083P0011X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>2083P0011X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_2083P0011X
	 * @model literal="2083P0011X"
	 * @generated
	 * @ordered
	 */
	public static final int _2083P0011X_VALUE = 7;

	/**
	 * An array of all the '<em><b>Preventive Medicine Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final PreventiveMedicineProviderCodes[] VALUES_ARRAY =
		new PreventiveMedicineProviderCodes[] {
			_208300000X,
			_2083A0100X,
			_2083T0002X,
			_2083X0100X,
			_2083P0500X,
			_2083P0901X,
			_2083S0010X,
			_2083P0011X,
		};

	/**
	 * A public read-only list of all the '<em><b>Preventive Medicine Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<PreventiveMedicineProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Preventive Medicine Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PreventiveMedicineProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PreventiveMedicineProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Preventive Medicine Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PreventiveMedicineProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PreventiveMedicineProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Preventive Medicine Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PreventiveMedicineProviderCodes get(int value) {
		switch (value) {
			case _208300000X_VALUE: return _208300000X;
			case _2083A0100X_VALUE: return _2083A0100X;
			case _2083T0002X_VALUE: return _2083T0002X;
			case _2083X0100X_VALUE: return _2083X0100X;
			case _2083P0500X_VALUE: return _2083P0500X;
			case _2083P0901X_VALUE: return _2083P0901X;
			case _2083S0010X_VALUE: return _2083S0010X;
			case _2083P0011X_VALUE: return _2083P0011X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private PreventiveMedicineProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //PreventiveMedicineProviderCodes
